﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucProductsDetail.ascx.cs"
    Inherits="Modules_WebsiteBackEnd_wucProductsDetail" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:UpdatePanel ID="UpdatePanelDetail" runat="server">
    <ContentTemplate>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="790px" class="TableGrayBorder">
            <tbody>
                <tr height="30px">
                    <td align="center">
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#f0f2f4">
                            <tbody>
                                <tr height="40px">
                                    <td width="5px">
                                        &nbsp;</td>
                                    <td align="center" valign="middle">
                                        <b>
                                            <asp:Label ID="lblDetailMode" runat="server"></asp:Label></b><asp:Label ID="lblCurrentMode"
                                                runat="server" Visible="False"></asp:Label>
                                        <asp:Label ID="lblResourceDirectoryTemp" runat="server" Visible="false"></asp:Label>
                                    </td>
                                    <td width="5px">
                                        &nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="790">
                            <tbody>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr valign="middle">
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                    <td align="left" width="70px">
                                        Mã sản phẩm
                                    </td>
                                    <td align="left">
                                        <font style="font-weight: bold; font-size: small;">
                                            <asp:Label ID="lbProductID" runat="server" Width="50px"></asp:Label></font>&nbsp;
                                    </td>
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr valign="middle">
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Ngôn ngữ
                                    </td>
                                    <td align="left">
                                        <telerik:RadComboBox ID="rcbLanguage" runat="server" ShowToggleImage="True" Skin="Vista"
                                            Width="150px" AutoPostBack="true" CausesValidation="false" OnSelectedIndexChanged="rcbLanguage_SelectedIndexChanged">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr valign="middle">
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Danh mục sản phẩm
                                    </td>
                                    <td align="left" width="30px">
                                        <telerik:RadComboBox ID="rcbProductCategory" runat="server" ShowToggleImage="True"
                                            Skin="Vista" Width="150px" AutoPostBack="true">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                
                                <tr valign="middle">
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Loại sản phẩm
                                    </td>
                                    <td align="left">
                                        <telerik:RadComboBox ID="rcbProductType" runat="server" ShowToggleImage="True" Skin="Vista"
                                            Width="150px" AutoPostBack="true">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td width="5px">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                
                                <tr valign="middle">
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Tên sản phẩm
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbProductName" runat="server" Width="400"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbProductName"
                                            ErrorMessage="Tên Sản phẩm không được để trống">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr valign="middle">
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Mã sản phẩm
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbProductCode" Rows="10" runat="server" Width="400"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbProductCode"
                                            ErrorMessage="Mã Sản phẩm không được để trống">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                </tr>
                                  <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr valign="middle">
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Giá thị trường
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbPrice" Rows="10" runat="server" Width="400"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbProductCode"
                                            ErrorMessage="Mã Sản phẩm không được để trống">*</asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="rvdtPrice" runat="server" ControlToValidate="tbPrice" Type="integer" MinimumValue="0" MaximumValue="999999999"
                                            Text="Giá của sản phẩm phải là số nguyên dương">*</asp:RangeValidator>
                                    </td>
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                </tr>
                                <tr valign="middle">
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Giá bán
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="tbSalePrice" Rows="10" runat="server" Width="400"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbProductCode"
                                            ErrorMessage="Mã Sản phẩm không được để trống">*</asp:RequiredFieldValidator>
                                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="tbPrice" Type="integer" MinimumValue="0" MaximumValue="999999999"
                                            Text="Giá của sản phẩm phải là số nguyên dương">*</asp:RangeValidator>
                                    </td>
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>                               
                                <tr valign="middle" height="500">
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                    <td align="left">
                                        Mô tả
                                    </td>
                                    <td align="left" valign="top">
                                        <telerik:RadEditor ID="redtDescription" runat="server" Width="500px" Height="500px"
                                            Skin="Vista" ToolsFile="~/RadControls/RadEditorTools.xml" EnableViewState="true">
                                            <Content></Content>
                                            <CssFiles>
                                                <telerik:EditorCssFile Value="~/RadControls/MCWFEditorSkin/editorstyle.css" />
                                            </CssFiles>
                                        </telerik:RadEditor>
                                    </td>
                                    <td width="10px">
                                        <img src="Images/spacer.gif" width="10px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="10px" valign="middle">
                                    <td colspan="4">
                                        <img src="Images/spacer.gif" width="5px" height="1px" />
                                    </td>
                                </tr>
                                <tr height="35px" valign="middle">
                                    <td colspan="4" align="center">
                                        <asp:ValidationSummary ID="vsDetailValidate" runat="server" DisplayMode="SingleParagraph"
                                            Font-Bold="True" />
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <!--POPUP WINDOWS==============================================================-->
        <telerik:RadWindowManager Visible="true" ID="rwdmanager" Skin="Vista" VisibleOnPageLoad="false"
            runat="server">
            <Windows>
                <telerik:RadWindow ID="ProductUploadWindow" runat="server" Skin="Vista" Width="750px"
                    Height="500px" Title="Upload ảnh đại diện">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <!--POPUP WINDOWS==============================================================-->
    </ContentTemplate>
</asp:UpdatePanel>
